import request from '@/utils/request'

let StallApi = {

  /*摊位列表*/
  stallList(data, errorback) {
      return request._get('/supplier/stall.stall/index', data, errorback);
  },

  /*分类管理*/
  stallcatList(data, errorback) {
    return request._get('/supplier/stall.category/adminindex', data, errorback);
  },
  /*编辑分类*/
  catadminEdit(data, errorback) {
    return request._post('/supplier/stall.category/status', data, errorback);
  },
  /*商品分类*/
  stallcategory(data, errorback) {
    return request._get('/supplier/stall.category/productcate', data, errorback);
  },
  /*商品列表*/
  productList(data, errorback) {
    return request._get('/supplier/stall.product/index', data, errorback);
  },
  /*编辑状态*/
  changeProductStatus(data, errorback) {
    return request._post('/supplier/stall.product/changestatus', data, errorback);
  },
  bindUid(data, errorback) {
    return request._post('/supplier/chat.chat/bindClient', data, errorback);
  },
}

export default StallApi;
